package com.zt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zt.mapper.CoursesMapper;
import com.zt.pojo.Coupons;
import com.zt.service.CouponsService;
import com.zt.mapper.CouponsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 洪
* @description 针对表【coupons(优惠券表)】的数据库操作Service实现
* @createDate 2025-04-10 09:58:53
*/
@Service
public class CouponsServiceImpl extends ServiceImpl<CouponsMapper, Coupons>
    implements CouponsService{
    @Autowired
    private CoursesMapper couponMapper;

    @Override
    public List<Coupons> getValidCoupons(Long id) {
        return couponMapper.getValidCoupons(id);
    }
}




